<cfsilent>
	<cfscript>
		stQuestions = Event.getValue("stQuestions");
		examID = Event.getValue("examID");
		//var viewMode = Event.getValue("viewMode");
		if ( ArrayLen( structKeyArray( stQuestions )) == 0 )
			noQuestion = true;
		else
			noQuestion = false;
	</cfscript>
</cfsilent>
<cfoutput>
<cfif noQuestion>
	There is no question for this exam yet. <br />
<cfelse>
	<!--- 
	
	--->
</cfif>

<a href="index.cfm?event=admin.dspAddEditQuestion&isAjax=1&id=#examID#&questionID=0">Add new question</a>

<!--- <cfdump var="#stQuestions#"> --->
<cfloop collection="#stQuestions#" item="key">
	<cfset oQuestion = stQuestions[ key ]>
	#oQuestion.getQuestion()# <br />
	<cfset arrAnswers = oQuestion.getAnswersArray()>
	<cfloop from="1" to="#ArrayLen( arrAnswers )#" index="index">
		#arrAnswers[ index ].getAnswer()# <br />		
	</cfloop>
</cfloop>

</cfoutput>